<template>
  <div>
   <van-search v-model="value" placeholder="请输入搜索关键词" @keydown.enter="huiche"/>
  </div>
</template>

<script>
import { community } from '@/api/article'
export default {
  async created () {
    const res = await community()
    console.log(res)
  },
  data () {
    return {
      value: ''
    }
  },
  methods: {
    huiche (e) {
      console.log(e.target.value)
      // community()
    }
  }
}
</script>

<style>

</style>
